<?php
require_once './objects.php';
require_once './functions.php';
session_start();
header('Content-Type: application/json; charset=utf-8');
$id=$_GET["id"];
$pass=$_GET["pass"];

$pass_encriptado=sha1(md5($pass));
$conexion1 = mysql_connect("localhost", "root", "root");
mysql_select_db("stick_wars", $conexion1);
$datos="UPDATE usuarios SET pass='$pass_encriptado' WHERE id_user='$id' ";
mysql_query($datos) or die(mysql_error());

$array="ok3";
echo json_encode($array);


//' . $nombre . '
?>